import request from '@/utils/request'

// 查询审批抄送管理列表
export function listCopy(query) {
  return request({
    url: '/module/copy/list',
    method: 'get',
    params: query
  })
}

// 查询审批抄送管理详细
export function getCopy(id) {
  return request({
    url: '/module/copy/' + id,
    method: 'get'
  })
}
// 新增审批抄送管理
export function addCopy(data) {
  return request({
    url: '/module/copy',
    method: 'post',
    data: data
  })
}

// 修改审批抄送管理
export function updateCopy(data) {
  return request({
    url: '/module/copy',
    method: 'put',
    data: data
  })
}

// 删除审批抄送管理
export function delCopy(id) {
  return request({
    url: '/module/copy/' + id,
    method: 'delete'
  })
}
 export function  copyrecodUpdata(data){
  return request({
    url:'module/copy/update',
    method:'POST',
    data,

  })
 }
export function exportApi (query){
  return request({
    url:'/module/copy/get/export2',
    method:'get',
    params: query,
    responseType: 'blob',
  })
}
